<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="icon" href="/static/pic/logo2.png" type="image/x-icon"/>
    <title>招定标档案信息管理系统</title>
    <!--bootstrap v3的核心样式-->
    {#    <link rel="stylesheet" href="{{ buildStaticUrl('/plugins/bootstrap_v3/css/bootstrap.min.css') }}">#}
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css"
          rel="stylesheet">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/moment.js/2.24.0/moment-with-locales.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
    {% block css %}{% endblock %}
</head>
<body>

{#logo#}

{#     style="border-radius: 0px;background-color: #0060A4;box-shadow: #c6c6c6 0px 0px 5px 5px">#}
<nav class="navbar navbar-default">
    {#<nav class="navbar navbar-inverse">#}
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">

            <a class="navbar-brand" href="{{ buildUrl('/index') }}" style="margin: 10px 15px 0 5px;padding: 0 0 0 0;">
                <img alt="Brand" src="/static/pic/logo2.png" style="height: 30px;">
            </a>

            <a class="navbar-brand" href="{{ buildUrl('/index') }}">西北区域公司</a>
        </div>

        {#    一级标题#}
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="{{ buildUrl('/index') }}">首页</a></li>
                <li><a href="{{ buildUrl('/book/bookindex') }}">招定标档案信息存档<span class="sr-only">(current)</span></a>
                </li>
                <li><a href="{{ buildUrl('/parter/parterindex') }}">承建商入库审查前存档<span class="sr-only">(current)</span></a>
                </li>
                <li><a href="{{ buildUrl('/plan/') }}">招标计划纠偏系统<span class="sr-only">(current)</span></a>
                </li>
                <li><a href="{{ buildUrl('/template/template') }}">模板下载<span class="sr-only">(current)</span></a>
                </li>

            </ul>


            </form>
            <ul class="nav navbar-nav navbar-right">
                {% if current_user.company =="西北区域公司" %}
                    <li><a href="{{ buildUrl('/document') }}" style="color: #6f9dc2">发布通知</a></li>
                    <li><a href="{{ buildUrl('/record') }}" style="color: #6f9dc2">操作记录查询</a></li>
                    <li><a href="{{ buildUrl('/member/admin') }}" style="color: #6f9dc2">人员权限管理</a></li>
                {% endif %}
                {% if current_user %}
                    <li><a href="javascript:void(0);">{{ current_user.nickname }}</a></li>
                    <li><a href="javascript:void(0);">{{ current_user.company }}</a></li>
                    <li><a href="{{ buildUrl('/member/logout') }}">退出</a></li>
                {% else %}
                    <li><a href="{{ buildUrl('/member/reg') }}">注册</a></li>
                    <li><a href="{{ buildUrl('/member/login') }}">登录</a></li>
                {% endif %}
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="container-fluid" style="min-height: 700px;margin-top: 10px;">
    {% block content %} {% endblock %}
</div>
<footer class="text-center">
    ©Copyright 2021 太原富力城房地产开发有限公司版权所有 | 晋ICP备2020013633号-2
</footer>

<script src="{{ buildStaticUrl('/plugins/jquery.min.js') }}"></script>
<script src="{{ buildStaticUrl('/plugins/bootstrap_v3/js/bootstrap.min.js') }}"></script>
<script src="{{ buildStaticUrl('/plugins/layer/layer.js') }}"></script>
<script src="{{ buildStaticUrl('/js/common.js') }}"></script>


<script>
    $(function () {
        $(".collapse").find("li").each(function () {
            var a = $(this).find("a:first")[0];
            if ($(a).attr("href").split("/")[1] === location.pathname.split("/")[1]) {
                $(this).addClass("active");
            } else {
                $(this).removeClass("active");
            }
        });
    })
</script>

{% block js %} {% endblock %}
</body>
</html>